<template>
  <div class="dashboard">
    <el-card class="welcome-card">
      <template #header>
        <div class="card-header">
          <span class="title">{{ $t('dashboard') }}</span>
        </div>
      </template>
      <div class="welcome-content">
        <el-icon class="welcome-icon"><Sunny /></el-icon>
        <h2>{{ $t('welcome') }}</h2>
        <p class="subtitle">这是一个基于 Vue3 + Element Plus 的后台管理系统</p>
      </div>
    </el-card>
  </div>
</template>

<script setup>

import { Sunny } from '@element-plus/icons-vue'
</script>

<style scoped>
.dashboard {
  background: #f5f7fa;
  min-height: calc(100vh - 120px);
}

.welcome-card,
.permission-demo,
.loading-demo,
.theme-demo {
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title {
  font-size: 18px;
  font-weight: 600;
  color: #303133;
}

.welcome-content {
  text-align: center;
  padding: 40px 20px;
}

.welcome-icon {
  font-size: 64px;
  color: #409eff;
  margin-bottom: 20px;
}

.subtitle {
  color: #606266;
  margin-top: 10px;
}

</style> 